package com.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

import java.util.List;

@Data
@TableName("sp_order")
public class Orders {
    @TableId(value = "order_id",type = IdType.AUTO)
    private Integer order_id;
    @TableField("user_id")
    private Integer user_id;
    @TableField("order_number")
    private String order_number;
    @TableField("order_price")
    private Integer order_price;
    @TableField("order_pay")
    private String order_pay;
    @TableField("is_send")
    private String is_send;
    @TableField("trade_no")
    private String trade_no;
    @TableField("order_fapiao_title")
    private String order_fapiao_title;
    @TableField("order_fapiao_company")
    private String order_fapiao_company;
    @TableField("order_fapiao_content")
    private String order_fapiao_content;
    @TableField("consignee_addr")
    private String consignee_addr;
    @TableField("pay_status")
    private String pay_status;
    @TableField("create_time")
    private Integer create_time;
    @TableField("update_time")
    private Integer update_time;

//    @TableField(exist = false)
//    private List<OrdersVo> goods;
    @TableField(exist = false)
    private List<OrderGoods> goods;

//    public void setOrderId(Integer order_id) {
//        this.order_id = order_id;
//    }

    public void setOrderId(Integer order_id) {
        this.order_id = order_id;
    }

    public void setUserId(Integer user_id) {
        this.user_id = user_id;
    }

    public void setOrderNumber(String order_number) {
        this.order_number = order_number;
    }

    public void setOrderPrice(Integer order_price) {
        this.order_price = order_price;
    }

    public void setOrderPay(String order_pay) {
        this.order_pay = order_pay;
    }

    public void setIsSend(String is_send) {
        this.is_send = is_send;
    }

    public void setTradeNo(String trade_no) {
        this.trade_no = trade_no;
    }

    public void setOrderFapiaoTitle(String order_fapiao_title) {
        this.order_fapiao_title = order_fapiao_title;
    }

    public void setOrderFapiaoCompany(String order_fapiao_company) {
        this.order_fapiao_company = order_fapiao_company;
    }

    public void setOrderFapiaoContent(String order_fapiao_content) {
        this.order_fapiao_content = order_fapiao_content;
    }

    public void setConsigneeAddr(String consignee_addr) {
        this.consignee_addr = consignee_addr;
    }

    public void setPayStatus(String pay_status) {
        this.pay_status = pay_status;
    }

    public void setCreateTime(Integer create_time) {
        this.create_time = create_time;
    }

    public void setUpdateTime(Integer update_time) {
        this.update_time = update_time;
    }
}
